package com.qianya.model.pojo.login.qo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author lhl
 * @since 2020-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LoginUsersupdateQO传入对象", description="用户")
public class LoginUsersupdateQO implements Serializable {

    private static final long serialVersionUID = -4636932978009497410L;

    @ApiModelProperty(value = "用户id")
    @JsonProperty(value = "uId")
    private String uId;

    @ApiModelProperty(value = "密码")
    @TableField("U_PASSWORD")
    @JsonProperty(value = "uPassword")
    @Length(min = 1,max = 20,message = "密码不能超过20个字符")
    private String uPassword;

    @ApiModelProperty(value = "确认密码")
    @TableField("U_PASSWORD")
    @JsonProperty(value = "uuPassword")
    @Length(min = 1,max = 20,message = "密码不能超过20个字符")
    private String uuPassword;

    @ApiModelProperty(value = "头像")
    @TableField("U_AVATAR")
    @JsonProperty(value = "uAvatar")
    private String uAvatar;


    @ApiModelProperty(value = "姓名")
    @TableField("U_NICKNAME")
    @JsonProperty(value = "uNickname")
    private String uNickname;


    @ApiModelProperty(value = "性别 1男0女")
    @TableField("U_SEX")
    @JsonProperty(value = "uSex")
    private Integer uSex;

    @ApiModelProperty(value = "手机号")
    @TableField("U_PHONE")
    @JsonProperty(value = "uPhone")
    private String uPhone;

    @ApiModelProperty(value = "部门ID")
    private  String deptId;

    @ApiModelProperty(value = "角色ID")
    private  String  roleId;

}
